package cc.aiee.bambora.northamerica.config;

import com.beanstream.Gateway;

public class BamboraPayConfigKit {

	public static Gateway defaultGateway = null;

	public static BamboraPayConfig defaultConfig = null;

	public static synchronized void setDefault(BamboraPayConfig bamboraPayConfig, boolean isOpenSandbox) {
		defaultConfig = bamboraPayConfig;
		defaultGateway = new Gateway(bamboraPayConfig.getVersion(), bamboraPayConfig.getMerchantId(),
				bamboraPayConfig.getApiPasscodes());
	}

	public Gateway getDefault() {
		return defaultGateway;
	}

	public BamboraPayConfig getDefaultConfig() {
		return defaultConfig;
	}
}
